#ifndef MAP_HPP
#define MAP_HPP

#include "Tile.hpp"
#include <string>
#include <map>

const std::string MAP_FILEPATH("resources/maps/test.txt");
const std::string CONFIG_FILEPATH("resources/maps/test.txt");
const std::string TILESET_FILEPATH("resources/images/space.png");

class Map
{
	private:
		sf::RenderWindow *window;
		sf::Image tileset;
		std::map <std::string, int> configuration;
		Tile **plateau;

	public:
	//Constructor(s)
		Map(sf::RenderWindow &p_app);
		Map(sf::RenderWindow &p_app, std::string p_map, std::string p_image);

	//Destructor
		~Map();

	//Getter(s)
		int get_height();
		int get_width();
		Tile& get_cell(int p_x, int p_y);

	//Other(s)
		void init(std::string p_map);
		void affiche();
		void config(std::string conf_file);
};

#endif